/**
 * @file rank/popularize/luogu1028/main.cpp
 * @brief
 * @see
 * @author Ruiming Guo (guoruiming@stu.scu.edu.cn)
 * @copyright 2022
 * @date 2022/7/8 10:11:50
 **/

#include <bits/stdc++.h>
using namespace std;
const int N = 1010;
int n;
int f[N];

int main() {
  // High rating and good luck!
  cin >> n;
  for (int i = 1; i <= n; ++i) {
    f[i]++;
    for (int j = 1; j <= i / 2; ++j) f[i] += f[j];
  }
  cout << f[n] << endl;
  return 0;
}
